<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="UTF-8"/>
<title>运营平台</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="renderer" content="webkit">
<!--<meta http-equiv="X-UA-Compatible" content="IE=edge">-->
<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/css/common.css?v=20170207" />
<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/css/table.css?v=20170117" />
<link type="text/css" rel="stylesheet" href="<?php echo get_style_cdnurl();?>paimai/yunying/css/jquery-ui.css" />
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery-1.11.1.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery-ui.min.js" type="text/javascript"></script>
 <script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/yunIndex.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery-ym-datePlugin-0.1.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/yunying/js/global.js" type="text/javascript"></script>
<script src="<?php echo get_style_cdnurl();?>paimai/cheshan/js/common.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo get_style_cdnurl();?>paimai/yunying/js/jquery.placeholder.min.js"></script>
<script type="text/javascript">
 $(function(){
     $("input").placeholder();
     if (navigator.userAgent.indexOf("Safari") > -1) {
       $("input").css("lineHeight","normal !important");
     };
});
</script>

<body>
<div class="header">
<div class="headerCo">
<span>你好,<?php echo ($user_info["real_name"]); ?><a href="<?php echo (WEB_URL); ?>Emp/logout">退出</a></span>
<h1><img src="<?php echo get_style_cdnurl();?>paimai/yunying/images/yun_logo.jpg"></h1>
</div>
</div>
<div class="mian">
    <div class="mianL">
    <dl>
        <dd>
            <a id="menu_sy" href="/Index/index" class="shouye">首页</a>
        </dd>
        <?php foreach ($tree_menu as $key => $value): ?>
          <dd>
            <span id="menu_<?php echo ($value['first_char']); ?>" ><img src="<?php echo get_style_cdnurl();?>paimai/yunying/images/yun_jia.jpg"><?php echo ($value['name']); ?></span>
            <ul style="display: none;">
                <?php if (!empty($value['children'])): ?>
                    <?php foreach ($value['children'] as $k => $v): ?>
                        <li><a id='menu_<?php echo ($v["first_char"]); ?>' href="<?php echo ($v['url']); ?>"><?php echo ($v['name']); ?></a></li>
                    <?php endforeach ?>
                <?php endif ?>
            </ul>
        <?php endforeach ?>
    </dl>
</div>

<?php $menu = 'pmgl.spsh'; ?>
<?php $menu=json_encode(explode('.', $menu)); ?>
<script>
    $(function () {
        var cur_menu = '<?php echo ($menu); ?>', cur_menu = eval('[' + cur_menu + ']'), cur_menu = cur_menu[0];
        if (cur_menu == "sy") {
            $("#menu_sy").removeClass('shouye').addClass('current');
        }
        $('#menu_' + cur_menu[0]).click();
        $('#menu_' + cur_menu[0]).find("img").attr("src", "http://img1.isou365.cn/paimai/yunying/images/yun_jie.jpg");
        $(".mianL").css("height", $(document).height() - 95);
        $('#menu_' + cur_menu[1]).addClass('current');
    });
</script>
    <div class="mianR">
        <h3 class="yonghu" style="font-size: 16px">上拍审核</h3>
        <br/>
		<div class="jianBen">
  	  	  <h4>发拍信息</h4>
 	  		<ul class="clearfix">
                <li>场次名称</li>
                <li class="benW"><?php echo ($head["scene_name"]); ?></li>	
               	<li>竞拍时长</li>
               	<li class="benW"><?php echo ($head["est_elapsed_time"]); ?>分</li>
               	<li>起拍价</li>
               	<li class="benW"><?php echo ($head["bid_start_price_show"]); ?>元</li> 
               	<li>代金券</li>
               	<li class="benW">
               	  <?php if($head[coupon] > 0): echo ($head["coupon"]); ?>元
               	  <?php else: ?>不可用<?php endif; ?>
               	</li>
               	<li>过户费</li>
               	<li class="benW"><?php echo ($head["transfer_fee"]); ?>元</li>
               	<li>交易佣金</li>
               	<li class="benW"><?php echo ($head["commision"]); ?>元</li> 
	    	</ul>
   		</div>        
        <div class="testing">
            <h4>协议详情</h4>
            <ul>
                <li class="agreement clearfix">
                	<span>过户限制</span>
                	<em><?php echo ($head["transfer_limit"]); ?></em>
                	<span>建议起拍价</span>
                	<em><?php echo ($head["suggest_bid_start_price"]); ?></em>
                	<span>保留价</span>
                	<em>
                        <?php echo ($head["reserve_price"]); ?>元
                        <?php if($head["show_reserve_price"] == 1): ?><img src="<?php echo get_style_cdnurl();?>paimai/yunying/images/eye.png" /><?php endif; ?>
                    </em>
                    <span>建议价</span>
                    <em><?php echo ($head["suggest_price"]); ?></em>
                </li>
                <?php if(!empty($head['procedure']['protocol_pic'])):?>
                <li class="agreement1 clearfix">
                    <span><img src="<?php echo ($head["procedure"]["protocol_pic"]); ?>"><em>协议照片点击看大图</em></span>
                </li>
                <?php endif;?>
            </ul>
        </div>
		<!-- 检测报告 -->
		<?php echo ($report); ?>

        <div class="testing" id="auditform">
            <h4>审核结果</h4>
            <ul class="shenhei-tongguo">
                <li class="trial clearfix">
                    <input type="button" name="pass" value="审核通过" class="sheng_hover" />
                    <input type="button" name="reject"  value="审核驳回" />
                </li>
            </ul>
            <div class="textarea-content">
                <div class="textarea-list">
                </div>
                <div class="textarea-list clearfix" style="display:none;">
                    <span>*备注</span><textarea name="remark_reject" placeholder="请填写驳回原"></textarea>
                </div>
            </div>
        </div>
        <div class="yongBtn1" style="display:none;">
            <input type="submit" value="确定" class="queding" />
        </div>
        <div class="clear"></div>
        <div class="xieyi"><span>×</span><img src="#" /></div>
    </div>
    <?php if($head[status] < 3): ?><script>$('#auditform').show();</script>
    <?php else: ?>
        <script>$('#auditform').hide();</script><?php endif; ?>

    <script>
    $(document).ready(function() {
    	$(".testing ul li span").click(function(){
    		var Img=$(this).find("img").attr("src");
    		$(".pageBeijing").fadeIn();
    		$(".xieyi").fadeIn();
    		$(".xieyi img").attr("src",Img)
    		
    	})
    	$(".xieyi span").click(function(){
    		$(".pageBeijing").fadeOut();
    		$(".xieyi").fadeOut();
    	})
    });
    
    var order_id = '<?php echo ($head["order_id"]); ?>';

    $('input[name=pass]').click(function(){
        var msg = '确认审核?';
        confirm_alert('<div style="color:red">'+msg+'</div>',confirm);
        function confirm(){
            $('.determine').click(function(){
                colse_hide();
                audit();
            });
        }

        function audit(){
            var param={
               'order_id':order_id,
               'act':'pass'
           };
           $.post('/AuOrder/audit',param,function(data){
               if(data.code=='200'){
                   btn_alert(data.msg,2000,function(){
                       $(window.opener.document).find("#searchBtn").trigger("click");
			self.close();
                   });
               }else{
                   shibai_alert(data.msg);
               }
           },'json')
        }
    });
    $('.queding').click(function(){
        var msg = '确认驳回？';
        var remark_reject = $('textarea[name=remark_reject]').val();
        if(remark_reject==''){
            shibai_alert('请输入驳回原因。');
            return;
        }
        confirm_alert('<div style="color:red">'+msg+'</div>',confirm);
        function confirm(){
            $('.determine').click(function(){
                colse_hide();
                audit();
            });
        }
        function audit(){
            var param={
                'order_id':order_id,
                'act':'reject',
                'remark_reject':encodeURIComponent(remark_reject)
           };
           $.post('/AuOrder/audit',param,function(data){
               if(data.code=='200'){
                   btn_alert(data.msg,2000,function(){
			//window.location.href='/AuOrder';
			$(window.opener.document).find("#searchBtn").trigger("click");
			self.close();
		   });
               }else{
                   shibai_alert(data.msg);
               }
           },'json')
        }
    });
</script>
</div>
<div class="yunBei"></div>
<div class="loading"></div>
</body>
</html>